from django.conf import settings
from django.urls import path

from home import views


from django.conf.urls.static import static

app_name = 'home'
urlpatterns=[
    path('index', views.index, name='home_index'),
    path('baidu', views.baidu, name='baidu'),
    path('info', views.info, name='info'),
    path('if', views.if_view, name='if_view'),
    path('for', views.for_view, name='for_view'),
    path('with', views.with_view, name='with_view'),
    path('url',views.url_view,name='url_view'),

    path('filter',views.filter_view,name='filter_view'),
    path('template/form',views.template_form,name='template_form'),
    path('sta',views.static_view,name='static_view'),
# http://localhost:8000/home/media/mi.jpg 可以查图片
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)